
if [ "$#" -ne "2" ] 
then
	echo "usage: build x86|android"
	exit 0
fi

t_plat=$1
export t_plat
operation=$2

export operation

if [ "${t_plat}" = "x86" ]
then
	echo "will make x86 project"
	make -f vroute_x86.mk ${operation}
else
	if [ ! -z ${operation} -a "${operation}" != "build" ] 
	then
		operation="clean"
	else
		operation=""
	fi
	ndk-build ${operation}
fi

